package com.analysis.service;

import com.analysis.entity.BrandExposureSnapshotDetail;
import com.analysis.mapper.BrandExposureSnapshotDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandExposureSnapshotDetailService {

    @Autowired
    private BrandExposureSnapshotDetailMapper detailMapper;

    public int create(BrandExposureSnapshotDetail detail) {
        return detailMapper.insert(detail);
    }

    public int delete(Long id) {
        return detailMapper.deleteById(id);
    }

    public int update(BrandExposureSnapshotDetail detail) {
        return detailMapper.update(detail);
    }

    public String getById(Long id) {
        return detailMapper.selectById(id);
    }
}


